﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="sysadmin_Product_productlist" Codebehind="productlist.aspx.cs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>商品列表</title>
    <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>

    <script src="../../javascript/jquery-1.3.2.min.js" type="text/javascript"></script>
    <link href="../images/skin.css" rel="stylesheet" type="text/css" />
    <link href="../../css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--头部开始-->
  <tr>
    <td width="17" valign="top" background="../images/mail_leftbg.gif"><img src="../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31" width="100%"> <div class="titlebt">商品列表</div>  </td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../images/mail_rightbg.gif"><img src="../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
   <!--头部结束-->
  <tr>
    <td valign="middle" background="../images/mail_leftbg.gif"></td>
    <td valign="top" bgcolor="#F7F8F9">
    <!--内容开始-->
  
  <hr />
    <asp:Button runat="server" ID="btn" Text="新增商品" CssClass="ACT_btn" PostBackUrl="~/sysadmin/Product/productmanager.aspx"/>
    
<table class="mytable" width="100%" cellspacing="0" > 

<tr> 
<th ></th> 
<th >产品编号</th> 
<th >标题</th> 
<th >商城</th>
<th >投递人</th>
<th >投递时间</th>
<th >原价</th>
<th >现价</th>
<th >外链</th>
<th >浏览</th>
<th >发布</th>
<th >发布人</th>
<th >操作</th>
</tr> 
<asp:Repeater runat="server" ID="rptList" onitemcommand="rptList_ItemCommand"  >
<ItemTemplate>
<tr> 
<td ><%# Container.ItemIndex + 1%></td> 
<td ><%# Eval("OrderNo") %></td> 
<td><%# Hongapo_Common.StringUtils.CutString(Eval("Title").ToString(), 12)%></td> 
<td ><%# new Hongapo_Services.Mall.Mall().GetModel(Int32.Parse(Eval("MID").ToString())).MallName%></td> 
<td ><%# Eval("DeliVerName")%></td> 
<td><%# Eval("Createdate") %></td> 
<td ><%# Hongapo_Common.TypeConvert.ToDecimal(Eval("OldPrice").ToString()).ToString("#0.00") %></td> 
<td ><%# Hongapo_Common.TypeConvert.ToDecimal(Eval("RealPrice").ToString()).ToString("#0.00") %></td>
<td > <a href='<%# Eval("LinkUrl") %>' target="_blank">打开</a> </td>  
<td ><%# Eval("Clicks")%></td> 
<td ><%# Isopen(Eval("Isopen"))%> &nbsp;&nbsp;
<asp:LinkButton runat="server" Text='<%# Eval("Isopen").ToString()=="1"?"停用":"发布" %>' CommandName='<%# Eval("ID") %>' OnClick="linkButton_click"></asp:LinkButton>
</td> 
<td><%# Eval("AuditName") %></td>
<td >
 <a href='productmanager.aspx?ID=<%# Eval("ID") %>'><img src="../images/view.png" style="border:0px" />详细</a>
 <a href='imagelist.aspx?no=<%# Eval("OrderNo") %>'><img src="../images/img.png" style="border:0px" />图片</a>
 <a href='commentlist.aspx?ID=<%# Eval("ID") %>'><img src="../images/pl.png" style="border:0px" />评论<span style="color:Red">(<%# Eval("commentCount")%>)</span></a>
<img src="../images/del.png" style="border:0px" /><asp:LinkButton runat="server"  ID="lnkDele" CommandArgument='<%# Eval("OrderNo")+","+Eval("ID") %>' CommandName="del" Text="删除" OnClientClick="javascript: return confirm('确认删除？')"></asp:LinkButton>
</td> 
</tr> 
</ItemTemplate>
</asp:Repeater>
</table> 
    
      <webdiyer:AspNetPager ID="Pager" runat="server" Style="color: #7f6d4d; font-size: 12px;" UrlPaging="true"
        ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" Width="100%" PageIndexBoxStyle="width:19px"
        FirstPageText="【首页】" LastPageText="【尾页】" NextPageText="【后页】" PrevPageText="【前页】"
        ShowCustomInfoSection="Left" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到第"
        PageSize="20" CustomInfoHTML="第 <font color='red'><b>%CurrentPageIndex%</b></font> 页 共 %PageCount% 页 显示 %StartRecordIndex%-%EndRecordIndex% 条"
        >
    </webdiyer:AspNetPager>
      <!--内容结束-->
    </td>
    <td background="../images/mail_rightbg.gif"></td>
  </tr>
  
  
  <!--底部开始-->
  <tr>
    <td valign="bottom" background="../images/mail_leftbg.gif"><img src="../images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="../images/buttom_bgs.gif"><img src="../images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="../images/mail_rightbg.gif"><img src="../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
  <!--底部结束-->
</table>
<input type="hidden" runat="server" id="hiddenIDList" />
    </form>
</body>
</html>

